package com.xwj

/**
  * Created by thinkjoy on 2017/8/16.
  */
object test {
  def main(args: Array[String]): Unit = {
     var a=Array[String]("a","b","c","d","e")
     var i=0
      a.foreach(o=>{
        i=i+1
        println(o+i)
      })
    var value=fff()
    println(value)

 }

  def fff():String={
    "xuweijie"   //返回值
  }
}
